package com.cxyd.common.utils;

import java.io.Serializable;

public class InterfaceResult implements Serializable {
    private static final long serialVersionUID = 1L;
    private String msgType = "S";
    private String msgContent = "success";

    public InterfaceResult ok() {
        return this;
    }

    public InterfaceResult error(String msgContent) {
        this.msgType = "E";
        this.msgContent = msgContent;
        return this;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }
}
